#!/usr/bin/bash
#
#  Usage: xxxxxxxx
#  Issue: 2024-05-17
# Author: Leon Hsia
#   Mail: waxwork3@163.com
#
base_path=$(dirname $(realpath $0))
cd $base_path

docker images |grep 'ubuntu/nginx' |awk '{print "docker save -o "$1"-"$2".tar "$1":"$2}' \
|sed 's#o ubuntu/#o #' |sh

